/**
 * 
 */
package com.luckmgr.web;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.common.constant.SystemConstant;
import com.luckmgr.entity.db.User;
import com.luckmgr.service.ToolService;
import com.luckmgr.util.ExcelUtil;

/**
 * 
 * @author duanhx
 * @version [Ver 1.0; 2012-7-22]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
@Controller
@RequestMapping("/index")
public class AdminController {
	
	@RequestMapping(value = "")
	public String index(Model model,HttpSession session) {
		User user = (User) session.getAttribute(SystemConstant.ESSIONUSER);
		model.addAttribute("user", user);
		return "index";
	}
	
	@RequestMapping(value = "top")
	public String top(Model model,HttpSession session) {
		User user = (User) session.getAttribute(SystemConstant.ESSIONUSER);
		model.addAttribute("user", user);
		return "top";
	}
	
	@RequestMapping(value = "left")
	public String left(Model model,HttpSession session) {
		User user = (User) session.getAttribute(SystemConstant.ESSIONUSER);
		model.addAttribute("user", user);
		return "left";
	}
	
	
	@RequestMapping(value = "out")
	public String out(Model model,HttpSession session) {
		return "out";
	}

}
